
#ifndef __GRAPHGDI_H__
#define __GRAPHGDI_H__

#include "2dDraw.h"

class CGraphGdi
{
public:
	CGraphGdi()
	{
		m_pDDraw		= NULL;
		m_pBackSurface	= NULL;
	}

	virtual ~CGraphGdi()
	{

	}

	int Init(CDDraw* pDDraw)
	{
		m_pDDraw = pDDraw;

		m_pBackSurface	= m_pDDraw->GetBackSurface();

		return 0;
	}

	int Draw_Text(char *text, int x,int y,COLORREF color);
	int Draw_Text(char *text, int x,int y,int color);

	int Draw_Rectangle(int x1, int y1, int x2, int y2, int color);

protected:

	CDDraw*					m_pDDraw;
	LPDIRECTDRAWSURFACE7	m_pBackSurface;
};

#endif